package com.pig.pojo.commgoods;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.util.Date;

/**
 * 商品目录类
 */
@TableName("p_goods_category")
public class Category implements Serializable {
    private static final long serialVersionUID = 1201133200274823266L;

    /**
     * 目录id
     */
    @TableId(type = IdType.AUTO)
    private Integer id;
    /**
     * 目录名字
     */
    private String name;
    /**
     * 目录父目录
     */
    private Integer parentId;
    /**目录是否启用 1为启用 0为禁用*/
    private Integer status = 1;

    private Date createdTime;

    public Category() {
    }

    public Category(Date createdTime, Integer id, String name, Integer parentId, Integer status) {
        this.createdTime = createdTime;
        this.id = id;
        this.name = name;
        this.parentId = parentId;
        this.status = status;
    }

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getParentId() {
        return parentId;
    }

    public void setParentId(Integer parentId) {
        this.parentId = parentId;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Date getCreatedTime() {
        return createdTime;
    }

    public void setCreatedTime(Date createdTime) {
        this.createdTime = createdTime;
    }
}
